package com.example.logic.chapter10;

import java.util.LinkedHashMap;
import java.util.Map;

public class Demo01 {
    public static void main(String[] args) {
        Map<String, Integer> seqMap = new LinkedHashMap<>();
        seqMap.put("c", 100);
        seqMap.put("d", 200);
        seqMap.put("a", 500);
        for (Map.Entry<String, Integer> entry : seqMap.entrySet()) {
            System.out.println(entry.getKey() + " " + entry.getValue());
        }
    }
}
